Skip to content

Conversation

@Konboi
Copy link
Contributor

@Konboi Konboi commented Dec 15, 2025

To support split subset for v2 (a.k.a smart-tests)

Usage

 $smart-tests subset file --session @session.txt --subset-id 286 --bin 1/2 --target 20%
tests/commands/test_api_error.py
tests/commands/test_verify.py
tests/test_runners/test_jasmine.py
tests/args4p/converters/__init__.py
tests/commands/record/test_case_event.py
tests/data/pytest/tests/funcs3_test.py
tests/utils/test_gzipgen.py
tests/test_runners/test_adb.py
Smart Tests created subset 287 for build  (test session 513) in workspace konboi/pts-v2

|           |   Candidates |   Estimated duration (%) |   Estimated duration (min) |
|-----------|--------------|--------------------------|----------------------------|
| Subset    |            8 |                    19.05 |                       0.00 |
| Remainder |           34 |                    80.95 |                       0.00 |
|           |              |                          |                            |
| Total     |           42 |                   100.00 |                       0.00 |

Run `smart-tests inspect subset --subset-id 287` to view full subset details
$ smart-tests subset file --session @session.txt --subset-id 287 --bin 1/2 --target 5%
tests/commands/test_api_error.py
tests/commands/test_verify.py
Smart Tests created subset 288 for build  (test session 513) in workspace konboi/pts-v2

|           |   Candidates |   Estimated duration (%) |   Estimated duration (min) |
|-----------|--------------|--------------------------|----------------------------|
| Subset    |            2 |                     4.76 |                       0.00 |
| Remainder |           40 |                    95.24 |                       0.00 |
|           |              |                          |                            |
| Total     |           42 |                   100.00 |                       0.00 |

Also we've added --print-input-snapshot-id and --input-snapshot-id to the subset command

e.g.)

 $ find ./tests/**/*.py | smart-tests subset file --session @session.txt --print-input-snapshot-id
348
$ smart-tests subset file --session @session.txt --input-snapshot-id 348 --bin 1/10
tests/commands/test_verify.py
tests/test_runners/test_vitest.py
tests/utils/test_typer_types.py
tests/commands/__init__.py
tests/data/pytest/tests/conftest.py
tests/utils/test_edit_distance.py
tests/test_plugin.py
tests/__init__.py
tests/test_runners/test_xctest.py
Smart Tests created subset 349 for build  (test session 518) in workspace konboi/pts-v2

|           |   Candidates |   Estimated duration (%) |   Estimated duration (min) |
|-----------|--------------|--------------------------|----------------------------|
| Subset    |            9 |                   100.00 |                       0.00 |
| Remainder |            0 |                     0.00 |                       0.00 |
|           |              |                          |                            |
| Total     |            9 |                   100.00 |                       0.00 |

Run `smart-tests inspect subset --subset-id 349` to view full subset details

@Konboi Konboi force-pushed the support-split-option/impl branch from ba9ede3 to 10e124b Compare December 16, 2025 00:19
@launchable-app

This comment has been minimized.

@Konboi Konboi force-pushed the support-split-option/impl branch 2 times, most recently from f452a09 to aa85d03 Compare December 16, 2025 00:36
@Konboi Konboi force-pushed the support-split-option/impl branch from aa85d03 to 2d9befc Compare December 16, 2025 00:42
@Konboi Konboi marked this pull request as ready for review December 16, 2025 00:51
@Konboi Konboi marked this pull request as draft December 16, 2025 00:51
@Konboi Konboi force-pushed the support-split-option/impl branch from a0146e2 to f59bf30 Compare December 19, 2025 02:19
@Konboi Konboi marked this pull request as ready for review January 7, 2026 00:54
@Konboi Konboi requested a review from kohsuke January 8, 2026 01:05
@Konboi
Copy link
Contributor Author

Konboi commented Jan 14, 2026

You don't review carefully

@Konboi Konboi requested review from gayanW and ono-max January 14, 2026 00:27
@Konboi Konboi merged commit 891fd6a into main Jan 14, 2026
2 checks passed
@Konboi Konboi deleted the support-split-option/impl branch January 14, 2026 02:26
@github-actions github-actions bot mentioned this pull request Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants